package com.tenglong.income.pojo;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class IncomeExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public IncomeExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Long value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Long value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Long value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Long value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Long value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Long value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Long> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Long> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Long value1, Long value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Long value1, Long value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIncomeActualIsNull() {
            addCriterion("income_actual is null");
            return (Criteria) this;
        }

        public Criteria andIncomeActualIsNotNull() {
            addCriterion("income_actual is not null");
            return (Criteria) this;
        }

        public Criteria andIncomeActualEqualTo(String value) {
            addCriterion("income_actual =", value, "incomeActual");
            return (Criteria) this;
        }

        public Criteria andIncomeActualNotEqualTo(String value) {
            addCriterion("income_actual <>", value, "incomeActual");
            return (Criteria) this;
        }

        public Criteria andIncomeActualGreaterThan(String value) {
            addCriterion("income_actual >", value, "incomeActual");
            return (Criteria) this;
        }

        public Criteria andIncomeActualGreaterThanOrEqualTo(String value) {
            addCriterion("income_actual >=", value, "incomeActual");
            return (Criteria) this;
        }

        public Criteria andIncomeActualLessThan(String value) {
            addCriterion("income_actual <", value, "incomeActual");
            return (Criteria) this;
        }

        public Criteria andIncomeActualLessThanOrEqualTo(String value) {
            addCriterion("income_actual <=", value, "incomeActual");
            return (Criteria) this;
        }

        public Criteria andIncomeActualLike(String value) {
            addCriterion("income_actual like", value, "incomeActual");
            return (Criteria) this;
        }

        public Criteria andIncomeActualNotLike(String value) {
            addCriterion("income_actual not like", value, "incomeActual");
            return (Criteria) this;
        }

        public Criteria andIncomeActualIn(List<String> values) {
            addCriterion("income_actual in", values, "incomeActual");
            return (Criteria) this;
        }

        public Criteria andIncomeActualNotIn(List<String> values) {
            addCriterion("income_actual not in", values, "incomeActual");
            return (Criteria) this;
        }

        public Criteria andIncomeActualBetween(String value1, String value2) {
            addCriterion("income_actual between", value1, value2, "incomeActual");
            return (Criteria) this;
        }

        public Criteria andIncomeActualNotBetween(String value1, String value2) {
            addCriterion("income_actual not between", value1, value2, "incomeActual");
            return (Criteria) this;
        }

        public Criteria andIncomeWageIsNull() {
            addCriterion("income_wage is null");
            return (Criteria) this;
        }

        public Criteria andIncomeWageIsNotNull() {
            addCriterion("income_wage is not null");
            return (Criteria) this;
        }

        public Criteria andIncomeWageEqualTo(String value) {
            addCriterion("income_wage =", value, "incomeWage");
            return (Criteria) this;
        }

        public Criteria andIncomeWageNotEqualTo(String value) {
            addCriterion("income_wage <>", value, "incomeWage");
            return (Criteria) this;
        }

        public Criteria andIncomeWageGreaterThan(String value) {
            addCriterion("income_wage >", value, "incomeWage");
            return (Criteria) this;
        }

        public Criteria andIncomeWageGreaterThanOrEqualTo(String value) {
            addCriterion("income_wage >=", value, "incomeWage");
            return (Criteria) this;
        }

        public Criteria andIncomeWageLessThan(String value) {
            addCriterion("income_wage <", value, "incomeWage");
            return (Criteria) this;
        }

        public Criteria andIncomeWageLessThanOrEqualTo(String value) {
            addCriterion("income_wage <=", value, "incomeWage");
            return (Criteria) this;
        }

        public Criteria andIncomeWageLike(String value) {
            addCriterion("income_wage like", value, "incomeWage");
            return (Criteria) this;
        }

        public Criteria andIncomeWageNotLike(String value) {
            addCriterion("income_wage not like", value, "incomeWage");
            return (Criteria) this;
        }

        public Criteria andIncomeWageIn(List<String> values) {
            addCriterion("income_wage in", values, "incomeWage");
            return (Criteria) this;
        }

        public Criteria andIncomeWageNotIn(List<String> values) {
            addCriterion("income_wage not in", values, "incomeWage");
            return (Criteria) this;
        }

        public Criteria andIncomeWageBetween(String value1, String value2) {
            addCriterion("income_wage between", value1, value2, "incomeWage");
            return (Criteria) this;
        }

        public Criteria andIncomeWageNotBetween(String value1, String value2) {
            addCriterion("income_wage not between", value1, value2, "incomeWage");
            return (Criteria) this;
        }

        public Criteria andIncomeCostIsNull() {
            addCriterion("income_cost is null");
            return (Criteria) this;
        }

        public Criteria andIncomeCostIsNotNull() {
            addCriterion("income_cost is not null");
            return (Criteria) this;
        }

        public Criteria andIncomeCostEqualTo(String value) {
            addCriterion("income_cost =", value, "incomeCost");
            return (Criteria) this;
        }

        public Criteria andIncomeCostNotEqualTo(String value) {
            addCriterion("income_cost <>", value, "incomeCost");
            return (Criteria) this;
        }

        public Criteria andIncomeCostGreaterThan(String value) {
            addCriterion("income_cost >", value, "incomeCost");
            return (Criteria) this;
        }

        public Criteria andIncomeCostGreaterThanOrEqualTo(String value) {
            addCriterion("income_cost >=", value, "incomeCost");
            return (Criteria) this;
        }

        public Criteria andIncomeCostLessThan(String value) {
            addCriterion("income_cost <", value, "incomeCost");
            return (Criteria) this;
        }

        public Criteria andIncomeCostLessThanOrEqualTo(String value) {
            addCriterion("income_cost <=", value, "incomeCost");
            return (Criteria) this;
        }

        public Criteria andIncomeCostLike(String value) {
            addCriterion("income_cost like", value, "incomeCost");
            return (Criteria) this;
        }

        public Criteria andIncomeCostNotLike(String value) {
            addCriterion("income_cost not like", value, "incomeCost");
            return (Criteria) this;
        }

        public Criteria andIncomeCostIn(List<String> values) {
            addCriterion("income_cost in", values, "incomeCost");
            return (Criteria) this;
        }

        public Criteria andIncomeCostNotIn(List<String> values) {
            addCriterion("income_cost not in", values, "incomeCost");
            return (Criteria) this;
        }

        public Criteria andIncomeCostBetween(String value1, String value2) {
            addCriterion("income_cost between", value1, value2, "incomeCost");
            return (Criteria) this;
        }

        public Criteria andIncomeCostNotBetween(String value1, String value2) {
            addCriterion("income_cost not between", value1, value2, "incomeCost");
            return (Criteria) this;
        }

        public Criteria andIncomeProfitsIsNull() {
            addCriterion("income_profits is null");
            return (Criteria) this;
        }

        public Criteria andIncomeProfitsIsNotNull() {
            addCriterion("income_profits is not null");
            return (Criteria) this;
        }

        public Criteria andIncomeProfitsEqualTo(String value) {
            addCriterion("income_profits =", value, "incomeProfits");
            return (Criteria) this;
        }

        public Criteria andIncomeProfitsNotEqualTo(String value) {
            addCriterion("income_profits <>", value, "incomeProfits");
            return (Criteria) this;
        }

        public Criteria andIncomeProfitsGreaterThan(String value) {
            addCriterion("income_profits >", value, "incomeProfits");
            return (Criteria) this;
        }

        public Criteria andIncomeProfitsGreaterThanOrEqualTo(String value) {
            addCriterion("income_profits >=", value, "incomeProfits");
            return (Criteria) this;
        }

        public Criteria andIncomeProfitsLessThan(String value) {
            addCriterion("income_profits <", value, "incomeProfits");
            return (Criteria) this;
        }

        public Criteria andIncomeProfitsLessThanOrEqualTo(String value) {
            addCriterion("income_profits <=", value, "incomeProfits");
            return (Criteria) this;
        }

        public Criteria andIncomeProfitsLike(String value) {
            addCriterion("income_profits like", value, "incomeProfits");
            return (Criteria) this;
        }

        public Criteria andIncomeProfitsNotLike(String value) {
            addCriterion("income_profits not like", value, "incomeProfits");
            return (Criteria) this;
        }

        public Criteria andIncomeProfitsIn(List<String> values) {
            addCriterion("income_profits in", values, "incomeProfits");
            return (Criteria) this;
        }

        public Criteria andIncomeProfitsNotIn(List<String> values) {
            addCriterion("income_profits not in", values, "incomeProfits");
            return (Criteria) this;
        }

        public Criteria andIncomeProfitsBetween(String value1, String value2) {
            addCriterion("income_profits between", value1, value2, "incomeProfits");
            return (Criteria) this;
        }

        public Criteria andIncomeProfitsNotBetween(String value1, String value2) {
            addCriterion("income_profits not between", value1, value2, "incomeProfits");
            return (Criteria) this;
        }

        public Criteria andIncomeCreatedIsNull() {
            addCriterion("income_created is null");
            return (Criteria) this;
        }

        public Criteria andIncomeCreatedIsNotNull() {
            addCriterion("income_created is not null");
            return (Criteria) this;
        }

        public Criteria andIncomeCreatedEqualTo(Date value) {
            addCriterion("income_created =", value, "incomeCreated");
            return (Criteria) this;
        }

        public Criteria andIncomeCreatedNotEqualTo(Date value) {
            addCriterion("income_created <>", value, "incomeCreated");
            return (Criteria) this;
        }

        public Criteria andIncomeCreatedGreaterThan(Date value) {
            addCriterion("income_created >", value, "incomeCreated");
            return (Criteria) this;
        }

        public Criteria andIncomeCreatedGreaterThanOrEqualTo(Date value) {
            addCriterion("income_created >=", value, "incomeCreated");
            return (Criteria) this;
        }

        public Criteria andIncomeCreatedLessThan(Date value) {
            addCriterion("income_created <", value, "incomeCreated");
            return (Criteria) this;
        }

        public Criteria andIncomeCreatedLessThanOrEqualTo(Date value) {
            addCriterion("income_created <=", value, "incomeCreated");
            return (Criteria) this;
        }

        public Criteria andIncomeCreatedIn(List<Date> values) {
            addCriterion("income_created in", values, "incomeCreated");
            return (Criteria) this;
        }

        public Criteria andIncomeCreatedNotIn(List<Date> values) {
            addCriterion("income_created not in", values, "incomeCreated");
            return (Criteria) this;
        }

        public Criteria andIncomeCreatedBetween(Date value1, Date value2) {
            addCriterion("income_created between", value1, value2, "incomeCreated");
            return (Criteria) this;
        }

        public Criteria andIncomeCreatedNotBetween(Date value1, Date value2) {
            addCriterion("income_created not between", value1, value2, "incomeCreated");
            return (Criteria) this;
        }

        public Criteria andIncomeUpdatedIsNull() {
            addCriterion("income_updated is null");
            return (Criteria) this;
        }

        public Criteria andIncomeUpdatedIsNotNull() {
            addCriterion("income_updated is not null");
            return (Criteria) this;
        }

        public Criteria andIncomeUpdatedEqualTo(Date value) {
            addCriterion("income_updated =", value, "incomeUpdated");
            return (Criteria) this;
        }

        public Criteria andIncomeUpdatedNotEqualTo(Date value) {
            addCriterion("income_updated <>", value, "incomeUpdated");
            return (Criteria) this;
        }

        public Criteria andIncomeUpdatedGreaterThan(Date value) {
            addCriterion("income_updated >", value, "incomeUpdated");
            return (Criteria) this;
        }

        public Criteria andIncomeUpdatedGreaterThanOrEqualTo(Date value) {
            addCriterion("income_updated >=", value, "incomeUpdated");
            return (Criteria) this;
        }

        public Criteria andIncomeUpdatedLessThan(Date value) {
            addCriterion("income_updated <", value, "incomeUpdated");
            return (Criteria) this;
        }

        public Criteria andIncomeUpdatedLessThanOrEqualTo(Date value) {
            addCriterion("income_updated <=", value, "incomeUpdated");
            return (Criteria) this;
        }

        public Criteria andIncomeUpdatedIn(List<Date> values) {
            addCriterion("income_updated in", values, "incomeUpdated");
            return (Criteria) this;
        }

        public Criteria andIncomeUpdatedNotIn(List<Date> values) {
            addCriterion("income_updated not in", values, "incomeUpdated");
            return (Criteria) this;
        }

        public Criteria andIncomeUpdatedBetween(Date value1, Date value2) {
            addCriterion("income_updated between", value1, value2, "incomeUpdated");
            return (Criteria) this;
        }

        public Criteria andIncomeUpdatedNotBetween(Date value1, Date value2) {
            addCriterion("income_updated not between", value1, value2, "incomeUpdated");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}